package com.squid.user.model.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.squid.base.common.annotation.format.FormatValid;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * Description
 *
 * @author jinhang
 * @since 2024-3-6
 **/
@Data
public class UserEntityRegisterReq {
    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;
    /**
     * 电话
     */
    @FormatValid(phone = true)
    private String phone;
    /**
     * 身份证
     */
    @FormatValid(idCard = true)
    private String idCard;
    /**
     * 名字
     */
    private String name;
    /**
     * 性别
     */
    private String sex;
    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String nickName;

    /**
     * 生日时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String birthdayTime;

}
